package com.qf.service;

import com.qf.loanapplication.Loanapplication;
import com.qf.loanrepayment.Loanrepayment;

import java.util.List;

public interface RepaymentService {

    //后台

    //查询所有
    public List<Loanrepayment> findAll();

    public int deleteById(Integer id);

    public int insertOrUpdate(Loanrepayment loanrepayment);

    //前台
    /*申请的所有额度*/
    public double aApplied(Integer id);

    /*所有已还款的额度*/
    public double findPaid(Integer id);

    /*查询用户的所有申请订单*/
    public List<Loanapplication> findBill(Integer id);

    /*某笔订单所还款金额的记录*/
    public Double findAlreadypaid(Integer loanapplicationd);
}
